//
//  BKIntegralListViewCell.m
//  bestkeep
//
//  Created by yons on 16/12/5.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKIntegralListViewCell.h"
#import "BKMainCommon.h"

@implementation BKIntegralListViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        self.backgroundColor = [UIColor clearColor];
        [self initView];
    }
    return self;
}

- (void)initView{
    
    _view_back = [[UIView alloc]initWithFrame:CGRectZero];
    _view_back.backgroundColor=[UIColor whiteColor];
    [self addSubview:_view_back];
    [_view_back mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.mas_top).mas_offset(0);
        make.right.equalTo(self.mas_right);
        make.left.equalTo(self.mas_left).mas_offset(0);
        make.bottom.equalTo(self.mas_bottom).mas_offset(-1);
    }];
    
    
    /*
     * 兑换优惠券：￥6999
     */
    _lab_name=[UILabel new];
    _lab_name.text=@"加载中...";
    _lab_name.textAlignment=NSTextAlignmentLeft;
    _lab_name.font=[UIFont systemFontOfSize:13];
    _lab_name.textColor=RGB(64, 64, 64);
    [_view_back addSubview:_lab_name];
    [_lab_name mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_view_back.mas_left).mas_offset(ApplicationBackGauge);
        make.top.equalTo(_view_back.mas_top).mas_offset(12);
    }];
    
    /*
     * 2019-06-18
     */
    _lab_date=[UILabel new];
    _lab_date.text=@"加载中...";
    _lab_date.textAlignment=NSTextAlignmentLeft;
    _lab_date.font=[UIFont systemFontOfSize:10];
    _lab_date.textColor=RGB(178, 178, 178);
    [_view_back addSubview:_lab_date];
    [_lab_date mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_lab_name.mas_left).mas_offset(0);
        make.top.equalTo(_lab_name.mas_bottom).mas_offset(0);
    }];
    
    /*
     * +888
     */
    _lab_money=[UILabel new];
    _lab_money.text=@"加载中...";
    _lab_money.textAlignment=NSTextAlignmentRight;
    _lab_money.font=[UIFont systemFontOfSize:15];
    _lab_money.textColor=RGB(3, 181, 152);
    [_view_back addSubview:_lab_money];
    [_lab_money mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(_view_back.mas_right).mas_offset(-ApplicationBackGauge);
        make.top.equalTo(_view_back.mas_top).mas_offset(0);
        make.bottom.equalTo(_view_back.mas_bottom).mas_offset(0);
    }];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
